package com.sh.工厂模式.抽象工厂模式;

import com.sh.工厂模式.抽象工厂模式.具体工厂.PersonFactory;
import com.sh.工厂模式.抽象工厂模式.抽象产品.Person;
import com.sh.工厂模式.抽象工厂模式.抽象工厂.AbstractFactory;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class Main {
    public static void main(String[] args) {
        AbstractFactory factory = new PersonFactory();
        Person china = factory.getPerson("china");
        china.kind();
        Person usa = factory.getPerson("USA");
        usa.kind();
    }
}

